<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org" lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>视频演示demo</title>
    <script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
    <link href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.css" rel="stylesheet">
    <script src="https://cdn.bootcss.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="http://cache.amap.com/lbs/static/main1119.css"/>
    <script src="http://webapi.amap.com/maps?v=1.4.6&key=91a897b1bf33a705798eaab9391d2496"></script>
    <script type="text/javascript" src="http://cache.amap.com/lbs/static/addToolbar.js"></script>
    <script src="https://cdn.bootcss.com/vue/2.5.16/vue.min.js"></script>

</head>
<body>
<div id="container"></div>
<!-- 模态框（Modal） -->
<div class="modal fade" id="myModal" tabindex="-1" backdrop="static" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
                <h4 class="modal-title" id="myModalLabel">车载监控查看</h4>
            </div>
                <div  class="modal-body plugin" >
                    <iframe src="" width="570px" height="400" seamless="seamless" id="divPlugin" frameborder='no' border='0' marginwidth='0' marginheight='0' scrolling='no' allowtransparency='yes'>
                    </iframe>
                </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" data-dismiss="modal" onclick="stopVideo()">关闭</button>
            </div>
        </div><!-- /.modal-content -->
    </div><!-- /.modal -->
</div>
<div id="tip"></div>
</body>
<script th:src="@{/js/video/video.js}"></script>
<script>
    const video=[{name:"测试一号车",ip:'183.158.236.98'},{name:"测试二号车",ip:'183.158.236.98'}];
    var marker=null;
    const map = new AMap.Map('container', {
        resizeEnable: true,
    });
/*    var geolocation;
    map.plugin('AMap.Geolocation', function() {
        geolocation = new AMap.Geolocation({
            enableHighAccuracy: true,//是否使用高精度定位，默认:true
            timeout: 10000,          //超过10秒后停止定位，默认：无穷大
            buttonOffset: new AMap.Pixel(10, 20),//定位按钮与设置的停靠位置的偏移量，默认：Pixel(10, 20)
            zoomToAccuracy: true,      //定位成功后调整地图视野范围使定位位置及精度范围视野内可见，默认：false
            buttonPosition:'RB'
        });
       map.addControl(geolocation);
        geolocation.getCurrentPosition();
        // 构造点标记
        AMap.event.addListener(geolocation, 'complete', onComplete);//返回定位信息
        AMap.event.addListener(geolocation, 'error', onError);      //返回定位出错信息
    });*/

    login('xinpai','000000');
</script>
</html>